package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.dto.MaxFullNameDto;
import com.dingreading.cloud.admin.entity.Members;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface MembersService extends IService<Members> {

    Page<Members> pageList(PageUtil pageUtil, String keyword, String storeUid);

    List<Members> getByFullName(String fullName);

    // 判断公司下有无同手机号和姓名的会员
    Members haveCorpUidAndMobAndFullName(String corpUid, String mob, String fullName, String uid);

    List<Members> listByUidInOrderByStoreUid(List<String> uid);

    MaxFullNameDto maxFullName(String fullName);

    List<Members> listByIdBetween(String idMax, String idMin);

    boolean updateLastFollowUid(String memberUid, String followUid);
}
